This function reads attributes.
Result = EOS_PT_READATTR(pointID, attrname, datbuf)
Returns SUCCEED (0) if successful and FAIL (–1) otherwise.
Point id (long) returned by EOS_PT_CREATE or EOS_PT_ATTACH.
Attribute name (string).
A named variable that will contain the buffer allocated to hold attribute values.
None
In this example, we read a single precision (32 bit) floating point attribute with the name “ScalarFloat”:
status = EOS_PT_READATTR(pointID, "ScalarFloat", f32)
5.2 |
Introduced |